import React from 'react';
// import logo from './logo.svg';
import 'antd-mobile/dist/antd-mobile.css'
// import { Button } from 'antd-mobile';
import axios from 'axios';
import './App.css';

class App extends React.Component{
     render(){
       return (
         <div>
           <button onClick={this.getAxios.bind(this)}>这是按钮触发请求</button>
         </div>
       )
     }
     getAxios(){
       axios.get("/data").then(res=>{
         console.log(res);
       })
     }
}

export default App;
